package com.wicket.okrapp.biz.service.dto.common;
import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;
    
    
    /**
     * @desc ContentMatchTargetCycleWeightDto
     * @使用场景
     */
    @Data
    public class ContentMatchTargetCycleWeightDto extends BaseDto  implements Serializable {
      
    /**
     * 被评对象目标周期ID 
     */
    @NotNull(message = "被评对象目标周期ID不能为空")
@ApiModelProperty("被评对象目标周期ID")
    private String	 evaObjTargetCycleId;

    /**
     * 权重 
     */
    @NotNull(message = "权重不能为空")
@ApiModelProperty("权重")
    private Double	 weightValue;
/**
     * 权重分值 
     */
    @NotNull(message = "权重分值不能为空")
@ApiModelProperty("权重分值")
    private Double	 weightScore;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      ContentMatchTargetCycleWeightDto that = (ContentMatchTargetCycleWeightDto) o;
      return  evaObjTargetCycleId == that.evaObjTargetCycleId&&weightValue == that.weightValue&&weightScore == that.weightScore;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), evaObjTargetCycleId,weightValue,weightScore);
    }
    
      

    }
   